package com.dr.springboot.starter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//todo scheduled 打开定时器功能
@EnableScheduling
//    todo async 开启异步功能
@EnableAsync
// todo filter 扫描@WebFilter标签，使得过滤器生效
@ServletComponentScan
public class StarterApplication {

    public static void main(String[] args) {
        SpringApplication.run(StarterApplication.class, args);
    }
}
